/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PnlEditCredit.java
 *
 * Created on 11 ก.พ. 2553, 13:36:20
 */

package Inventory;

/**
 *
 * @author Poko
 */
public class PnlStaEditCredit extends javax.swing.JPanel {

    /** Creates new form PnlEditCredit */
    public PnlStaEditCredit() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlEditHeadStaCradit = new javax.swing.JPanel();
        btnStaCreditPrint = new javax.swing.JButton();
        lblHeadListStaCredit = new javax.swing.JLabel();
        btnStaCreditEditDel = new javax.swing.JButton();
        btnStaCreditEditSave = new javax.swing.JButton();
        btnStaCreditEditCancel = new javax.swing.JButton();
        pnlEditStaCradit = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        txtSCComment = new javax.swing.JTextArea();
        rbtSCCredit = new javax.swing.JRadioButton();
        rbtSCDrebit = new javax.swing.JRadioButton();
        lblSCCode = new javax.swing.JLabel();
        txtSCCode = new javax.swing.JTextField();
        lblSCCName = new javax.swing.JLabel();
        lblSCComment = new javax.swing.JLabel();

        setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        setMaximumSize(new java.awt.Dimension(700, 500));
        setMinimumSize(new java.awt.Dimension(700, 500));
        setLayout(new java.awt.BorderLayout());

        pnlEditHeadStaCradit.setBackground(new java.awt.Color(204, 255, 204));
        pnlEditHeadStaCradit.setMaximumSize(new java.awt.Dimension(700, 80));
        pnlEditHeadStaCradit.setMinimumSize(new java.awt.Dimension(700, 80));
        pnlEditHeadStaCradit.setPreferredSize(new java.awt.Dimension(700, 80));

        btnStaCreditPrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/print_30x30.gif"))); // NOI18N
        btnStaCreditPrint.setMaximumSize(new java.awt.Dimension(40, 40));
        btnStaCreditPrint.setMinimumSize(new java.awt.Dimension(40, 40));
        btnStaCreditPrint.setPreferredSize(new java.awt.Dimension(40, 40));

        lblHeadListStaCredit.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
        lblHeadListStaCredit.setText("สถานะการซื้อ");

        btnStaCreditEditDel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/del_30x30.gif"))); // NOI18N

        btnStaCreditEditSave.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/save_30x30.gif"))); // NOI18N

        btnStaCreditEditCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/cancel_30x30.gif"))); // NOI18N

        javax.swing.GroupLayout pnlEditHeadStaCraditLayout = new javax.swing.GroupLayout(pnlEditHeadStaCradit);
        pnlEditHeadStaCradit.setLayout(pnlEditHeadStaCraditLayout);
        pnlEditHeadStaCraditLayout.setHorizontalGroup(
            pnlEditHeadStaCraditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 700, Short.MAX_VALUE)
            .addGroup(pnlEditHeadStaCraditLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlEditHeadStaCraditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblHeadListStaCredit)
                    .addGroup(pnlEditHeadStaCraditLayout.createSequentialGroup()
                        .addGap(0, 0, 0)
                        .addComponent(btnStaCreditEditSave, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnStaCreditEditCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnStaCreditEditDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnStaCreditPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(490, Short.MAX_VALUE))
        );
        pnlEditHeadStaCraditLayout.setVerticalGroup(
            pnlEditHeadStaCraditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 80, Short.MAX_VALUE)
            .addGroup(pnlEditHeadStaCraditLayout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addComponent(lblHeadListStaCredit)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlEditHeadStaCraditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btnStaCreditPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnStaCreditEditDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnStaCreditEditSave, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnStaCreditEditCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        add(pnlEditHeadStaCradit, java.awt.BorderLayout.PAGE_START);

        txtSCComment.setColumns(12);
        txtSCComment.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txtSCComment.setRows(2);
        jScrollPane1.setViewportView(txtSCComment);

        rbtSCCredit.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        rbtSCCredit.setText("ค้างชำระ");
        rbtSCCredit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtSCCreditActionPerformed(evt);
            }
        });

        rbtSCDrebit.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        rbtSCDrebit.setText("ชำระแล้ว");
        rbtSCDrebit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtSCDrebitActionPerformed(evt);
            }
        });

        lblSCCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblSCCode.setText("รหัสสถานะบัญชีเจ้าหนี้ :");

        txtSCCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblSCCName.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblSCCName.setText("สถานะการชำระ :");

        lblSCComment.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblSCComment.setText("หมายเหตุ :");

        javax.swing.GroupLayout pnlEditStaCraditLayout = new javax.swing.GroupLayout(pnlEditStaCradit);
        pnlEditStaCradit.setLayout(pnlEditStaCraditLayout);
        pnlEditStaCraditLayout.setHorizontalGroup(
            pnlEditStaCraditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlEditStaCraditLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlEditStaCraditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblSCComment)
                    .addComponent(lblSCCName)
                    .addComponent(lblSCCode))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlEditStaCraditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlEditStaCraditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(txtSCCode, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
                        .addComponent(jScrollPane1))
                    .addGroup(pnlEditStaCraditLayout.createSequentialGroup()
                        .addComponent(rbtSCDrebit)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(rbtSCCredit)))
                .addContainerGap(382, Short.MAX_VALUE))
        );
        pnlEditStaCraditLayout.setVerticalGroup(
            pnlEditStaCraditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 420, Short.MAX_VALUE)
            .addGroup(pnlEditStaCraditLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlEditStaCraditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblSCCode)
                    .addComponent(txtSCCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlEditStaCraditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblSCCName)
                    .addComponent(rbtSCDrebit)
                    .addComponent(rbtSCCredit))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlEditStaCraditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblSCComment)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(316, Short.MAX_VALUE))
        );

        add(pnlEditStaCradit, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents

    private void rbtSCCreditActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtSCCreditActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_rbtSCCreditActionPerformed

    private void rbtSCDrebitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtSCDrebitActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_rbtSCDrebitActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnStaCreditEditCancel;
    private javax.swing.JButton btnStaCreditEditDel;
    private javax.swing.JButton btnStaCreditEditSave;
    private javax.swing.JButton btnStaCreditPrint;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel lblHeadListStaCredit;
    private javax.swing.JLabel lblSCCName;
    private javax.swing.JLabel lblSCCode;
    private javax.swing.JLabel lblSCComment;
    private javax.swing.JPanel pnlEditHeadStaCradit;
    private javax.swing.JPanel pnlEditStaCradit;
    private javax.swing.JRadioButton rbtSCCredit;
    private javax.swing.JRadioButton rbtSCDrebit;
    private javax.swing.JTextField txtSCCode;
    private javax.swing.JTextArea txtSCComment;
    // End of variables declaration//GEN-END:variables

}
